<template>
    <h3>componentD</h3>
    <p>{{ title }}</p>
    <p>{{ onEvent('传递参数111') }}</p>
</template>
<script>


export default{
    data() {
        return {
            title:"D标题",
            age:12,
            names:["demo111","demo332"]
        }
    },
    props: {
        title:String,
        onEvent:Function
    },
}
</script>